package main;

import processing.core.PApplet;
import processing.core.PImage;

public class BgImage extends PApplet {

    PImage pImage;
    int y = 0;

    @Override
    public void settings() {
        size(1920, 1200);
    }

    @Override
    public void setup() {
        pImage = loadImage("C:\\Users\\Hyper\\Pictures\\land.jpg");
    }

    @Override
    public void draw() {
        background(pImage);
        stroke(226,204,0);
        line(0, y , width, y);

        y++;
        if(y > height){
            y = 0;
        }
    }
}
